using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;

internal static class Class29
{
	internal static readonly bool bool_0 = false;// HttpRuntime.AppDomainAppId != null;

	[CompilerGenerated]
	private static Func<Assembly, Assembly> func_0;

	public static Assembly[] smethod_0()
	{
		//Assembly[] result;
		List<Assembly> result = new List<Assembly>();
		//if (Class29.bool_0)
		//{
		//	ICollection referencedAssemblies = BuildManager.GetReferencedAssemblies();
		//	IEnumerable<Assembly> arg_32_0 = referencedAssemblies.Cast<Assembly>();
		//	if (Class29.func_0 == null)
		//	{
		//		Class29.func_0 = new Func<Assembly, Assembly>(Class29.smethod_1);
		//	}
		//	result = arg_32_0.Select(Class29.func_0).ToArray<Assembly>();
		//}
		//else
		//{
		//result = AppDomain.CurrentDomain.GetAssemblies();
		//}
		string[] paths = Directory.GetFiles(AppContext.BaseDirectory, "*.dll");
		foreach (var psth in paths)
		{
			var ans = AssemblyName.GetAssemblyName(psth);
			result.Add(AppDomain.CurrentDomain.Load(ans));
		}
		return result.ToArray();
	}

	[CompilerGenerated]
	private static Assembly smethod_1(Assembly assembly_0)
	{
		return assembly_0;
	}
}
